package com.example.demospringmybatisplus.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demospringmybatisplus.entity.Node;
import com.example.demospringmybatisplus.handler.ValidateChainUtil;
import com.example.demospringmybatisplus.handler.ValidateHandler;

/**
 * 网元数据校验Service
 *
 * @author huahua
 * @DATE 2024/8/10
 **/
@Service
public class NodeDataCheckService {

    @Autowired
    private List<ValidateHandler<Node>> chainNodeList;

    public void validNodeData(Node node) {
        ValidateChainUtil.doValidateChain(chainNodeList, node);
    }
}
